package edu.api.jdbc_api;

import java.sql.ResultSet;
import java.sql.SQLException;

public class Demo4 {

    public static void main(String[] args) throws SQLException {
        String sql = "select * from tb_user";
        ResultSet resultSet = JDBCUtils.query(sql, null);
        while (resultSet.next()){
            System.out.println(resultSet.getString("name"));
            System.out.println(resultSet.getString("address"));
        }


    }

}
